export default [
    {
        path: '/',
        name: 'home',
        components: {
            Sidebar: () => import('../components/sidebar/Index'),
            NavBar: () => import('../components/sidebar/NavBar'),
            TagsView: () => import('../components/TagsView/Index'),
            Content: () => import('../views/console/Index'),
        },
        meta: {
            name: 'home',
            icon: 'el-icon-s-home',
            layout: 'SinglePage'
        }
    },
    {
        path: '/test',
        name: 'test',
        component: () => import('../views/layouts/Index'),
        meta: {
            name: 'testNavigation',
            icon: 'el-icon-s-operation'
        },
        children: [
            {
                path: 'test01',
                name: 'Test01',
                component: () => import('../views/test/Test01'),
                meta: {
                    name: 'test01',
                    icon: 'el-icon-set-up'
                }
            },
            {
                path: 'test02',
                name: 'Test02',
                component: () => import('../views/test/Test02'),
                meta: {
                    name: 'test02',
                    icon: 'el-icon-s-shop'
                }
            },
            {
                path: 'test03',
                name: 'Test03',
                component: () => import('../views/test/Test02'),
                meta: {
                    name: '外部链接',
                    showIframe: true,
                    icon: 'el-icon-s-shop',
                    iframeUrl: 'https://www.cnblogs.com/'
                }
            },
            {
                path: 'test04',
                name: 'Test04',
                component: () => import('../views/test/Test02'),
                meta: {
                    target: true,
                    showIframe: true,
                    name: '外部链接-新标签',
                    icon: 'el-icon-s-shop',
                    iframeUrl: 'https://www.cnblogs.com/'
                }
            }
        ]
    },
    {
        path: '/components',
        name: 'components',
        meta: {
            name: 'components',
            icon: 'el-icon-s-tools'
        },
        component: () => import('../views/layouts/Index'),
        children: [
            {
                path: 'formMaking',
                name: 'formMaking',
                component: () => import('../views/components/FormMaking/Index'),
                meta: {
                    name: 'formMaking',
                    icon: 'el-icon-tickets'
                }
            },
            {
                path: 'Markdown',
                name: 'markdown',
                component: () => import('../views/components/Markdown/Index'),
                meta: {
                    name: 'Markdown',
                    icon: 'el-icon-c-scale-to-original'
                }
            },
            {
                path: 'RichText',
                name: 'RichText',
                component: () => import('../views/components/RichText/Index'),
                meta: {
                    name: 'RichText',
                    icon: 'el-icon-document'
                }
            },
            {
                path: 'SplitPanes',
                name: 'SplitPanes',
                component: () => import('../views/components/SplitPanes/Index'),
                meta: {
                    name: 'SplitPanes',
                    icon: 'el-icon-document'
                }
            }
        ]
    },
    {
        path: '/404',
        name: '404',
        component: () => import('../views/components/ErrorPage/40x/404'),
        meta: {
            name: '404',
            target: true,
            icon: 'el-icon-circle-close'
        }
    },
    {
        path: '/ArticleEditor',
        name: 'ArticleEditor',
        component: () => import('../views/ArticleEditor/Index'),
        meta: {
            target: true,
            name: 'ArticleEditor',
            icon: 'el-icon-s-marketing'
        }
    },
    {
        path: '/Login',
        name: 'login',
        component: () => import('../views/Login/Index'),
        meta: {
            target: true,
            name: 'login',
            icon: 'el-icon-s-promotion'
        }
    },
    {
        path: '/:pathMatch(.*)',
        redirect: '/404',
        meta: {
            hidden: true
        }
    }
];
